<?php
/**
 * Created by PhpStorm.
 * User: hp
 * Date: 2017/12/2
 * Time: 15:36
 */

namespace App\Modules\Channel\Services;

use App\Modules\Channel\Models\ChannelDailyStat;
use DB;

class ChannelDailyStatService
{

    /**
     * 添加条目
     * @param $data 条目
     * @return mixed
     */
    static function addItem($data){
        return ChannelDailyStat::addItem($data);
    }

    /**
     * 获取派单信息
     * @param array $params 参数数组
     * @param boolean $isAll 是否获取所有
     * @return mixed
     */
    static function search($params, $isAll = false)
    {
        return ChannelDailyStat:: search($params, $isAll);
    }
    static function getDailySum($params)
    {
        return ChannelDailyStat::getDailySum($params);
    }

    public static function getMonthData($param,$isAll=false) {
        return ChannelDailyStat::getMonthData($param,$isAll);
    }

    public static function getList($date){
        return ChannelDailyStat::getList($date);
    }
}